package service;

import org.springframework.stereotype.Service;

import entity.Admin;
import factory.CommonServiceFactory;

@Service
public class AdminService {

	private CommonService adminCommonService;
	public AdminService(){
		adminCommonService = CommonServiceFactory.create(CommonServiceFactory.ADMIN);
	}
	public boolean login(Admin admin) {
		return adminCommonService.checkPassword(admin.getUsername(), admin.getPassword(),null);
	}
	
}
